package video.background.Utils;

import java.util.regex.Pattern;

/**
 * @program: background
 * @description:
 * @author: hlt
 * @create: 2023-08-08 16:47
 **/
public class EmailJudge {
    static public boolean emailJudge(String email){
        if ((email != null) && (!email.isEmpty())) {
            return Pattern.matches("^([1-9]\\d{0,9}@qq\\.com|\\w+@163\\.com|\\w+@gmail\\.com|\\w+@outlook\\.com)$", email);
        }
        return false;
    }
}
